import { defineStore } from 'pinia'
import { userInfoType } from '../types/userStore'
export const userStore = defineStore('user', {
    state: (): userInfoType => {
        return {
            token: "",
            userinfo: {
                name: "",
                email: ""
            }
        }
    },
    getters: {},
    actions: {
        async login(data:{username:string,password:string}){
            console.log(data)
        },
        async logout(){
            console.log("logout")
        }
    }
})
